package com.example;

//Rest模式

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping()
public class BookController {

   @GetMapping(value = "/books/{id}")
    public String getById(@PathVariable Integer id){
        System.out.println(id);
        System.out.println("springboot is runing...");
        return "springboot is running..";
    }
}
